@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<link href="/admin/css/custom.css" rel="stylesheet">
@endsection
@section('content')
<div class="tables">
	<div class="table-responsive bs-example widget-shadow">
		<h4>Device 列表 :</h4>
		<form action="/admin/device/device" method="get">
			<div class="row" style="padding-bottom: 15px;margin-top: 0px;">
				<p class="col-lg-1 col-md-1 col-sm-1 col-xs-1" style="width: 70px; height: 32px;padding: 0px;text-align: right;line-height: 32px;">DevEUI：</p>
				<input type="text" name="eui" value="{{$get['eui']}}" class="col-lg-1 col-md-1 col-sm-1 col-xs-1" style="height: 30px; line-height: 30px; padding: 0px; border: 1px solid #DDD; margin: 0px 10px; width: 15%;"/>
				<input type="submit" value="搜索" class="col-lg-1 col-md-1 col-sm-1 col-xs-1"  style="height: 30px; line-height: 32px; padding: 0px; border: 0; background: #4F52BA;width: 50px; margin: 0px 10px;color:#fff"/>
			</div>
		</form>
		<div id="box">
			<table class="table table-bordered">
				<thead>		
	 				<tr>
						<th>DevEUI</th>
						<th>DevAddr</th>
						<th>NwkSKey</th>
						<th>AppSKey</th>
						<th>FCntUp</th>
						<th>FCntDn</th>
						<th>remark</th>
					</tr>
				</thead>
				<tbody>
				@if(!null==$data)
					@foreach($data as $k => $v)
						<tr> 
							<th scope="row">{{$v['DevEUI']}}</th> 
							<td>{{$v['DevAddr']}}</td>
							<td>{{$v['NwkSKey']}}</td>
							<td>{{$v['AppSKey']}}</td>
							<td>{{$v['FCntUp']}}</td>
							<td>{{$v['FCntDn']}}</td>
							<td>{{$v['remark']}}</td>
						</tr>
					@endforeach
				@endif
				</tbody> 
			</table>
		</div>
        @if(!null == $data)
        	<div style="float:right;">
        	{!! $data->appends($request)->render() !!}
        	</div>
        @endif
	</div>
</div>
@endsection